package com.ylxn.chapter01;

import java.util.concurrent.locks.LockSupport;

/**
 * 过时方法
 */
public class demo07 {
    public static void main(String[] args) {
        Thread thread = new Thread(() -> {
            System.out.println("park---");
            LockSupport.park();
            System.out.println("unpark---");
            System.out.println("打断状态==="+Thread.currentThread().isInterrupted());
        }, "park-thread");
        thread.start();
    }
}
